<template>
	<image
		:style="{ width: `${size || width}px`, height: `${size || height}px` }"
		mode="scaleToFill"
		:src="srcObj[name]"
	></image>
</template>
<script>
export default {
	props: {
		height: {
			type: Number,
			default: 35,
		},
		width: {
			type: Number,
			default: 35,
		},
		size: {
			type: Number,
			default: 40,
		},
		name: {
			type: String,
			default: '',
		},
	},
	data() {
		return {
			srcObj: {
				search: 'http://www.jxgl123.com/profile/upload/image/search.png',
			},
		};
	},
};
</script>
